import {SET_lOGIN_STATE} from './mutation-types'


export default   {
	namespaced:true, //  命名空间  
	state:{
		isLogin:false,
		userInfo:{},
		uid:null
	},
	mutations:{
	
		[SET_lOGIN_STATE](state,val){
			state.isLogin = val
		},
		setUserInfo(state,val){
			state.userInfo = val
		},
		setUid(state,val){
			state.uid = val
		},
		quit(state){
			state.isLogin   = false
			state.userInfo   = {}
		}
	}
}